#ifndef TEST_EXAMPLE_ECHO_CLIENT_H_
#define TEST_EXAMPLE_ECHO_CLIENT_H_

#include "base/base.h"

#include "net/processor.h"

namespace net {
class Poller;
class TcpClient;
}

class EchoClientProcessor : public net::Processor {
  public:
    EchoClientProcessor() {
    }

    void HandleRead(net::TcpStream* stream, net::Buffer* buffer);
    void HandleWrite(net::TcpStream* stream, net::Buffer* buffer);

  private:

    DISALLOW_COPY_AND_ASSIGN(EchoClientProcessor);
};

class EchoClient {
  public:
    EchoClient() {
    }

    void Echo();

  private:
    scoped_ptr<net::TcpClient> tcp_client_;

    DISALLOW_COPY_AND_ASSIGN(EchoClient);
};

#endif
